<?php

namespace App\Http\Controllers;

use App\Http\Controllers\Controller;
use Inertia\Inertia;
use Inertia\Response;
use App\Models\User;

class UserController extends Controller {
    /**
     * 显示给定用户的个人资料
     */
    public function show(): Response {
        $userOne = User::first();
        return Inertia::render('Users/Profile', [
            'user' => $userOne
        ]);
    }

    public function create(): Response {
        return Inertia::render('Users/Create');
    }
}